#include "../include/MainHeader.h"



//int count_forwardSlash(char* pathString, char ch);
int generate_tokens(char **token_list[], char *path, char delimitor);

int insert_node(t_node** root, fd* data); 
/* Inserts a node into the tree. 
 * It gets the relevant information from the file descriptor passed to it. 
 * If the path is invalid, appropriate error message is returned*/

int delete_node(t_node** root,char* fullpath);
/* Removes a node from the tree. 
 * The infrmation about the node to be removed could be determined using the path and the name. */

int delete_recursively(t_node* node);
/*Removes a node from the tree, and also deletes the complete subtree of that node recursively.
 * This is done to delete the contents of folder, when folder is itself deleted.*/

int print_tree(t_node* root); 
/* Prints the tree.*/
fd* returnnode(t_node** root, char* path);



